package com.xt.purchasingsystem.feign;

import com.xt.purchasingsystem.model.SysUsers;
import com.xt.purchasingsystem.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: 老姚
 * Date:  2020/5/21 22:24
 */
@Component
@FeignClient(value = "PURCHASE-AUTHORITYMANAGESERVER")
public interface SysUsersClient {
    @PostMapping("/user/login")
    Result login(@RequestBody SysUsers sysUsers);
}
